[SOLVED] Â Compilation Error - Login Page |
1/27/2008 4:38:11 PM |
ASPRunner.NET General questions | |
U
umkemesic author
Hello, Server Error in '/Project1' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0103: The name 'fldUserName' does not exist in the current context Source Error: Line 46: try Line 47: { Line 48: if (UserClass.UserExist(fldUserName.Text)) Line 49: { Line 50: lblMessage.Text = "Username" + " " + fldClient_ID_Email.Text + " " + "already exists. Choose another username."; Source File: c:\Program Files\ASPRunner.NET4.0\projects\test\output\register.aspx.cs Line: 48
|
|
U
|
umkemesic author 1/27/2008 |
For reference here is the enitre code generated by PHPRunner: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Globalization; endregion
|
U
|
umkemesic author 1/27/2008 |
I have read the help for the login page and I noticed that the example given shows a UserID and Username field which is numerical. |
U
|
umkemesic author 1/27/2008 |
I have changed the tables to reflect UserID and UserName, now I get this error: The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
[InvalidOperationException: The connection name 'Project1ConnectionString' was not found in the applications configuration or the connection string is empty.] System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(St ring connectionStringName) +3047985 ASP.register_aspx.BuildControlsds() +76 ASP.register_aspx.BuildControlContent1(Control ctrl) +49 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12 ASP.default_master.BuildControlContentPlaceHolder1() +101 ASP.default_master.BuildControlfrmMaster() +87 ASP.default_master.__BuildControlTree(default_master ctrl) +102 ASP.default_master.FrameworkInitialize() +34 System.Web.UI.UserControl.InitializeAsUserControlInternal() +31 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +2028700 System.Web.UI.Page.get_Master() +48 System.Web.UI.Page.ApplyMasterPage() +18 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +685
|
U
|
umkemesic author 1/28/2008 |
Problem Solved !!!! |